package com.neuedu.wemall.member.config;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringDocConfig {
    @Bean
    public OpenAPI customOpenAPI() {
        Contact contact = new Contact();
        contact.email("729750336@qq.com");
        contact.name("lu");
        contact.url("https://member.wemall.com");
        return new OpenAPI()
                .info(new Info()
                        .title("微商城会员客户后台接口在线API")
                        .contact(contact)
                        .summary("微商城会员客户后台接口在线API")
                        .description("微商城会员客户后台接口在线API")
                        .version("1.0"));
    }
}